<div class="main">
<div class="panel panel-default">
	<div class="panel-heading">{$title}</div>
	<div class="panel-body">
		<form action="" method="post" class="form-horizontal" role="form" id="form1" ng-controller="formCtrl">
			{php echo tpl_all($tpl)}
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-sm-8 col-lg-9 col-xs-12">
					<input class="btn btn-default" id="" type="button" value="提交" ng-click="submit()">
					<input type="hidden" name="token" value="{$_W['token']}">
				</div>
			</div> 
		</form>
	</div>
</div>
</div>
<script>
	require(['angular', 'jquery', 'util'], function(angular, $, util){
		var app = angular.module('app', []);
		app.controller('formCtrl', function($scope,$http){
			$scope.submit = function() {
	            $('#form1')[0].submit();
	        };
		});
		angular.bootstrap(document, ['app']);
	});
</script>